import request from '@/utils/request.js'

export function login(user) {
  return request({
    method: 'post',
    url: `/user/login`,
    data: user
  })
}

export function checkUniquePrincipal(principal) {
  return request({
    method: 'get',
    url: `/user/get/${principal}`,
  })
}


export function register(user) {
  return request({
    method: 'post',
    url: `/user/register`,
    data: user
  })
}
